import App from './App'
import Vant from 'Vant'
import 'vant/lib/index.css'
import Vuex from '@/store/index.js'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false

App.mpType = 'app'
const app = new Vue({
    ...App
})
app.use(Vuex.store)
app.$mount()
// #endif


// #ifdef VUE3
import { createSSRApp } from 'vue'
import TabBar from '@/component/tabbar/index.vue'
import NavBar from '@/component/navbar/index.vue'
export function createApp() {
  const app = createSSRApp(App)
  app.use(Vant)
  app.use(Vuex.store)
  app.component('tab-bar',TabBar)
  app.component('nav-bar',NavBar)
  return {
    app
  }
}
// #endif